package com.nineclock.common.oss.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 配置类 读取配置文件的配置项
 */
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
@PropertySource(value = "classpath:oss.properties",encoding = "UTF-8")
public class OssProperties {
    private String endpoint;   //OSS对外服务的访问域名
    private String accessKeyId;   //用于标识用户
    private String accessKeySecret;   //用户用于加密签名字符串和OSS用来验证签名字符串的密钥，必须保密
    private String bucketName;  //存储空间bucket的名称,存储空间bucket是用户用于存储对象（Object）的容器
    private String host;  //最终页面访问图片的域名(图片url的映射)

}
